package com.jxtpro.area;

import com.jfinal.aop.Before;
import com.jfinal.kit.Ret;
import com.jfinal.plugin.ehcache.CacheInterceptor;
import com.jfinal.plugin.ehcache.CacheName;
import com.jxtpro.common.controller.BaseController;
/**
 * 地区统计
 * @author x
 *
 */
public class AreaController extends BaseController{
	
	@Before(CacheInterceptor.class)
	@CacheName("count")
	public void index(){
		Ret r =AreaService.srv.findUnderAreas("0");
		setAttr("count", r.get("count"));
		render("index.html");
	}
}
